import request from '@/utils/request'

/* 获取计费规则列表的接口 */
export const fetchRuleListAPI = (pageParams) => {
  return request({
    url: '/parking/rule/list',
    method: 'GET',
    params: pageParams
  })
}

/* 删除计费规则的接口 */
export const deleteRuleAPI = (id) => {
  return request({
    url: `/parking/rule/${id}`,
    method: 'DELETE'
  })
}
